package com;

import com.htj.utils.DateTimeUtil;
import org.junit.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class test1 {
    @Test
    public void test1(){
        String time = "2032-12-12 10:10:10";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String time2 = sdf.format(new Date());
        System.out.println(time.compareTo(time2));
    }
}
